Inflation Simulator
🔗 https://github.com/Carina-labs/inflation-simulator
How to Use​
$ python simulator/<simulating_env>/run.py
For example, run python simulator/cosmos/run.py
to simulate Cosmos Hub's inflation.
simulating_env
s:
- Cosmos (Hub):
cosmos
Help​
Press [H]
for help.
Cosmos Commands
[N]nextBlocks <#_of_blocks>
[B]bondedAmount <bonded_amount>
[S]stakingRatio <%_of_staking_ratio>
Logs Commands
[P]step(window) <size_of_step>
[K]saveFigs <name> [dpi]
[L]saveLogs <name>
NOTE: Please input
:
before typing the command.
For example,
: N 10000000
Pass by 10,000,000 blocks.
: L test
Save test_provs.csv
and test_state.csv
files in logs/
.
: K test 600
Save test_provs.png
and test_state.png
files in plots/
.
Pipeline​
$ python simulator/<simulating_env>/run.py [< <input_file>]
For example, run python simulator/cosmos/run.py < tests/cosmos/test_cosmos_input
to simulate Cosmos Hub's inflation through pre-described test_cosmos_input
file.
Use L
and K
, for saving logs and plots repectively.